package com.zhongxiangspace.entity;

import java.io.Serializable;

/**
 * 权限
 */
public class Permissions implements Serializable {

    //id
    private Integer id;
    //创建时间
    private String create_time;
    //最后修改时间
    private String modify_time;
    //名称
    private String name;
    //访问的url
    private String url;
    //父级id,顶级默认0
    private Integer parent_id;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCreate_time() {
        return create_time;
    }

    public void setCreate_time(String create_time) {
        this.create_time = create_time;
    }

    public String getModify_time() {
        return modify_time;
    }

    public void setModify_time(String modify_time) {
        this.modify_time = modify_time;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Integer getParent_id() {
        return parent_id;
    }

    public void setParent_id(Integer parent_id) {
        this.parent_id = parent_id;
    }
    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("Permissions{");
        sb.append("id=").append(id);
        sb.append(", create_time='").append(create_time).append('\'');
        sb.append(", modify_time='").append(modify_time).append('\'');
        sb.append(", name='").append(name).append('\'');
        sb.append(", url='").append(url).append('\'');
        sb.append(", parent_id=").append(parent_id);
        sb.append('}');
        return sb.toString();
    }
}
